//
//  HDRequestObj.h
//  HDBeiJingYanQiHu
//
//  Created by 牛的mini on 7/19/16.
//  Copyright © 2016 牛的mini. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JQIndicatorView.h"

typedef void(^dataBlock)(NSDictionary *dic);
@interface HDRequestObj : NSObject

@property (copy) dataBlock myDataBlock;
@property (copy) dataBlock failedBlock;

- (void)requestPath:(NSString *)path
          Parameter:(NSDictionary *)parametersDic
             withVC:(UIViewController *)vcTemp
            timeout:(CGFloat)timeout;

- (void)requestPath:(NSString *)path
          Parameter:(NSDictionary *)parametersDic
             withVC:(UIViewController *)vcTemp;
- (void)requestPath:(NSString *)path
          Parameter:(NSDictionary *)parametersDic;
// 需要上传NSData
- (void)requestPath:(NSString *)path
          Parameter:(NSDictionary *)parametersDic
             withVC:(UIViewController *)vcTemp
            dataDic:(NSDictionary *)imgDataDic;
// 需要上传NSData
- (void)requestPath:(NSString *)path
          Parameter:(NSDictionary *)parametersDic
             withVC:(UIViewController *)vcTemp
          dataArray:(NSArray *)imgDataArray;

- (void)requestGet:(NSString *)path
         Parameter:(NSDictionary *)parametersDic;
- (void)requestGetPath:(NSString *)path
             Parameter:(NSDictionary *)parametersDic
                withVC:(UIViewController *)vcTemp
               timeout:(CGFloat)timeout;

@end
